public class Student {
    String name;
    private int age;
    public Student(){
        System.out.println("可爱的女孩");
    }
    public void setAge(int age){
        if(age<0||age>120){
            System.out.println("你输入的年龄有误解");
        }else{
          this.age=age;
        }
    }

    public int getAge() {
        return age;
    }

    public void show(){
        System.out.println(name+" "+age);
            System.out.println("烦恼避退！");
            System.out.println("开心万岁！");
        }
    }


